import request from '@/utils/request'

// 查询问题分类列表
export function listQuestion_type(query) {
  return request({
    url: '/employment/question_type/list',
    method: 'get',
    params: query
  })
}

// 查询问题分类详细
export function getQuestion_type(id) {
  return request({
    url: '/employment/question_type/' + id,
    method: 'get'
  })
}

// 新增问题分类
export function addQuestion_type(data) {
  return request({
    url: '/employment/question_type',
    method: 'post',
    data: data
  })
}

// 修改问题分类
export function updateQuestion_type(data) {
  return request({
    url: '/employment/question_type',
    method: 'put',
    data: data
  })
}

// 删除问题分类
export function delQuestion_type(id) {
  return request({
    url: '/employment/question_type/' + id,
    method: 'delete'
  })
}
